package com.scuec.groupfive.service;

import com.scuec.groupfive.vo.WrongQuestionVO;

import java.util.List;
import java.util.Map;

public interface WrongQuestionService {
    // 查询方法返回VO
    Map<String, Object> getByWrongCountDesc(Long userId, Integer page, Integer size, String subjectCode, String examType);
    Map<String, Object> getBySubjectChapter(Long userId, Integer page, Integer size, String subjectCode, String examType);
    Map<String, Object> getByTimeOrder(Long userId, boolean isAsc, Integer page, Integer size, String subjectCode, String examType);

    // 更新方法操作Entity
    int updateWrongCount(Long id, int newCount);

    // 物理删除错题
    int deleteWrongQuestion(Long id);

    Map<String, Object> getWeakPointsByUserId(Long userId, Integer subjectId, Integer page, Integer size);

    // 切换收藏状态
    boolean toggleFavorite(Long userId, Long questionId, boolean isFavorite);
}
